<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class TongTransferMoney extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'tong_transfer_money';

    protected $guarded = [];


    /**
     * 关联用户信息
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function toUserInfo(){
        return $this->hasOne(TongUser::class,'id','to_id');
    }
}
